package 外观模式;

public class Starter {
    private Dashboard dashboard;
    private Engine engine;
    private SelfCheck selfCheck;

    public Starter(){
        dashboard = new Dashboard();
        engine = new Engine();
        selfCheck = new SelfCheck();
    };

    public void startup(){
        dashboard.startup();
        engine.startup();
        selfCheck.startup();
        System.out.println("汽车启动......");
    }

    public void shutdown(){
        dashboard.shutdown();
        engine.shutdown();
        selfCheck.shutdown();
        System.out.println("汽车关闭......");
    }

}
